package ca.ualberta.cs.CLRDB.conference;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashMap;

import ca.ualberta.cs.BibTex.BibTex;
import ca.ualberta.cs.CLRDB.AuthoringManagement;
import ca.ualberta.cs.CLRDB.BibTexManagement;
import ca.ualberta.cs.CLRDB.ReadingManagement;
import ca.ualberta.cs.CLRDB.ResourceManagement;
import ca.ualberta.cs.CLRDB.TagsManagement;
import ca.ualberta.cs.CLRDB.interfaces.EntityRelManagement;
import ca.ualberta.cs.CLRDB.interfaces.ResourceAccess;
import ca.ualberta.cs.CLRDB.interfaces.TagAccess;

public class ResourceMgmtConference extends EntityRelManagement implements
		ResourceAccess {

	private static ResourceManagement resourceMgmt = new ResourceManagement();
	
	
	@Override
	public void initialize(Statement statement) throws SQLException {
		resourceMgmt.initialize(statement);
	}

	public int addAuthorsOfResource(BibTex bib, Integer resourceId) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int addOrUpdateResource(BibTex bib,
			HashMap<String, String> paperInfo, String url) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int addResource(String url, String docDigest, String textDigest,
			Connection con) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int addResourceWithBibtex(BibTex bib, String url, Connection con) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int addResourceWithBibtexId(Integer bibtexId, BibTex bib,
			String url, Connection con) {
		// TODO Auto-generated method stub
		return 0;
	}

	public AuthoringManagement getAuthoringManagement() {
		return resourceMgmt.getAuthoringManagement();
	}

	public BibTexManagement getBibTexManagement() {
		return resourceMgmt.getBibTexManagement();
	}

	public ReadingManagement getReadingManagement() {
		return resourceMgmt.getReadingManagement();
	}

	public TagAccess getTagsManagement() {	
		return resourceMgmt.getTagsManagement();
	}

	public int resourceExists(String url, Connection con) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int resourceExists(Integer bibtexId, String url, Connection con) {
		// TODO Auto-generated method stub
		return 0;
	}

	public void updateResourceDigest(Integer resourceId, String docDigest,
			String textDigest, Connection con) {
		// TODO Auto-generated method stub

	}

}
